package EveryDayPractice;

import java.util.Scanner;

public class Practice48 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入的数据信息: ");
        int a = sc.nextInt();
        String b= String.valueOf((a/1000+a/1000+5)%10);
        String c= String.valueOf((a%1000/100+a%1000/100+5)%10);
        String d= String.valueOf((a%1000%100/10+a%1000%100/10+5)%10);
        String e= String.valueOf((a%1000%100%10+a%1000%100%10+5)%10);
        String f=b;
        b=e;
        e=f;
        f=c;
        c=d;
        d=f;
        String g=b+c+d+e;
        System.out.println("加密后的信息"+g);
    }
}
